<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useCountStore } from '../store/count';


const store = useCountStore()
const { count, car, dbCount } = storeToRefs(store)

</script>

<template>
  <div>
    <hr>
    <div>子组件---计数: {{ count }}---{{ car }} - 双倍快乐: {{ dbCount }}</div>
  </div>
</template>

<style scoped></style>
